/*
 * @Description: 入口文件
 * @Version: 2.0
 * @Autor: lhl
 * @Date: 2021-04-03 23:18:54
 * @LastEditors: lhl
 * @LastEditTime: 2021-05-05 17:29:59
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import i18n from './locales/index'
import Vant from 'vant'
import 'vant/lib/index.css' // 全局引入样式
import 'normalize.css/normalize.css'
import API from './api/index'
// vite版本不需要配置组件的按需加载，因为Vant 3.0 内部所有模块都是基于 ESM 编写的，天然具备按需引入的能力

console.log(import.meta.env.VITE_APP_BASE_URL, 'VITE_APP_BASE_URL')
console.log(process.env.NODE_ENV)
const app = createApp(App)
app.config.globalProperties.API = API
console.log(app.config.globalProperties.API, 'app.config.globalProperties.API')
app.use(i18n).use(Vant).use(router).use(store).mount('#app')
